home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Think Class Libraries / WASTE TCL 1.8 / WASTE TCL 1.8 ƒ / CWASTEDlgText.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-12  |  2.0 KB  |  73 lines  |  [TEXT/MMCC]

  1. /******************************************************************************
  2.  CWASTEDlgText.c
  3.  
  4.     A class with some of the functionality of CDialogText, but using CWASTEText
  5.  
  6.     by Dan Crevier
  7.     version 1.2
  8.  
  9.     Roms    95/11/08    adapted to THINK C / TCL 1.1.3
  10.  ******************************************************************************/
  11.  
  12.  
  13. #pragma once
  14.  
  15. #include "CWASTEText.h"
  16.  
  17. #include "CDialogText.h" // to get enum for dialogTextChanged
  18.  
  19. class CDialog;
  20.  
  21. class CWASTEDlgText : public CWASTEText
  22. {
  23. public:
  24. #if TCL_VERSION >= 0x02000000
  25.     TCL_DECLARE_CLASS
  26. #endif
  27.  
  28. #ifndef THINK_C
  29.     CWASTEDlgText();
  30.     CWASTEDlgText(CView *anEnclosure, CBureaucrat *aSupervisor,
  31.             short aWidth, short aHeight,
  32.             short aHEncl, short aVEncl,
  33.             SizingOption aHSizing = sizFIXEDSTICKY,
  34.             SizingOption aVSizing = sizFIXEDSTICKY,
  35.             short aLineWidth = -1, Boolean aScrollHoriz = 0,
  36.             Boolean aIsRequired = FALSE, long aMaxValidLength = MAXLONG,
  37.             Boolean aValidateOnResign = TRUE,
  38.             Boolean supportObjects = true, Boolean supportUndo = true,
  39.             Boolean supportDragAndDrop = true, Boolean outlineHighliting = true,
  40.             Boolean drawOffscreen = false);
  41.  
  42.     virtual ~CWASTEDlgText();
  43. #endif    // THINK_C
  44.  
  45.     void         IWASTEDlgText(CView *anEnclosure, CBureaucrat *aSupervisor,
  46.                     short aWidth, short aHeight,
  47.                     short aHEncl, short aVEncl,
  48.                     SizingOption aHSizing, SizingOption aVSizing,
  49.                     short aLineWidth);
  50.  
  51.     virtual void     IViewTemp(CView *anEnclosure, CBureaucrat *aSupervisor,
  52.                             Ptr viewData);
  53.  
  54.     virtual void     DoKeyDown(char theChar, Byte keyCode, EventRecord *macEvent);
  55.     virtual void     GetTextString(StringPtr aString);
  56.     virtual void     PerformEditCommand(long theCommand);
  57.  
  58.     static pascal void WEPostUpdate(WEHandle hWE, long fixLength, long inputAreaStart,
  59.                         long inputAreaEnd, long pinRangeStart, long pinRangeEnd);
  60.  
  61.     // Object I/O
  62. #if TCL_VERSION >= 0x02000000 && VA_COMPATIBLE_IO
  63.     virtual void         PutTo(CStream& stream);
  64.     virtual void         GetFrom(CStream& stream);
  65. #endif
  66.     
  67. protected:
  68.  
  69.     void             IWASTEDlgTextX(void);
  70.     virtual void     MakeBorder(void);
  71.  
  72. };
  73.